﻿using Glue.Internals;
using GlueTests.Builders;
using Xunit;

namespace GlueTests.ConverterContainerTests
{
    public class When_working_with_converting_between_same_nested_type
    {
        [Fact]
        public void Should_not_be_able_to_convert_without_explicit_converter()
        {
            var nestedProperty = PropertyBuilder.AsNestedProperty().Build();
            var container = new ConverterContainer();
            Assert.False(container.CanConvert(nestedProperty, nestedProperty)); 
        }
    }
}
